package com.hlhj.carview.bean;

import java.util.List;

/**
 * Created by Never Fear   on 2019\1\16 0016.
 * Never More....
 */

public class AdvDetailBean {
    /**
     * code : 1
     * msg : 操作成功！
     * info : {"advertiser":"广告商1","advertising_name":"测试广告","type":"1","cover":"url2","url":"url","duration":10,"start_time":"2019-01-07 00:00:00","end_time":"2019-01-09 00:00:00","play_time":"4000","royalty":[{"name":"广告名称一","number":"20.00","add_time":"2019-01-08 17:31:12"}]}
     */

    private int code;
    private String msg;
    private InfoBean info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public InfoBean getInfo() {
        return info;
    }

    public void setInfo(InfoBean info) {
        this.info = info;
    }

    public static class InfoBean {
        /**
         * advertiser : 广告商1
         * advertising_name : 测试广告
         * type : 1
         * cover : url2
         * url : url
         * duration : 10
         * start_time : 2019-01-07 00:00:00
         * end_time : 2019-01-09 00:00:00
         * play_time : 4000
         * royalty : [{"name":"广告名称一","number":"20.00","add_time":"2019-01-08 17:31:12"}]
         */

        private String advertiser;
        private String advertising_name;
        private String type;
        private String cover;
        private String url;
        private int duration;
        private String start_time;
        private String end_time;
        private String play_time;
        private List<RoyaltyBean> royalty;

        public String getAdvertiser() {
            return advertiser;
        }

        public void setAdvertiser(String advertiser) {
            this.advertiser = advertiser;
        }

        public String getAdvertising_name() {
            return advertising_name;
        }

        public void setAdvertising_name(String advertising_name) {
            this.advertising_name = advertising_name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public int getDuration() {
            return duration;
        }

        public void setDuration(int duration) {
            this.duration = duration;
        }

        public String getStart_time() {
            return start_time;
        }

        public void setStart_time(String start_time) {
            this.start_time = start_time;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public String getPlay_time() {
            return play_time;
        }

        public void setPlay_time(String play_time) {
            this.play_time = play_time;
        }

        public List<RoyaltyBean> getRoyalty() {
            return royalty;
        }

        public void setRoyalty(List<RoyaltyBean> royalty) {
            this.royalty = royalty;
        }

        public static class RoyaltyBean {
            /**
             * name : 广告名称一
             * number : 20.00
             * add_time : 2019-01-08 17:31:12
             */

            private String name;
            private String number;
            private String add_time;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getNumber() {
                return number;
            }

            public void setNumber(String number) {
                this.number = number;
            }

            public String getAdd_time() {
                return add_time;
            }

            public void setAdd_time(String add_time) {
                this.add_time = add_time;
            }
        }
    }
}
